package org.jsola.contract.provider.impl;

import org.jsola.contract.provider.ILogProviderService;
import org.jsola.user.core.TokenUser;
import org.jsola.log.common.LogKit;
import org.springframework.stereotype.Service;

/**
 * @author june
 */
@Service("contractLogProviderService")
public class LogProviderServiceImpl implements ILogProviderService {

    @Override
    public void log(String content, Integer actionType, String subjectType, String subjectId, TokenUser tokenUser) {
        LogKit.log(content, actionType, subjectType, subjectId, tokenUser);
    }

    @Override
    public void log(String content, Integer actionType, String subjectType,
                    String subjectId, String contentId, TokenUser tokenUser) {
        LogKit.log(content, actionType, subjectType, subjectId, contentId, tokenUser);
    }
}
